package com.osdp.common.sercurity.domain;

import lombok.Data;

import java.io.Serializable;

@Data
public class SecurityUser extends Principal{

    private String userId;

    private String userName;

    public SecurityUser(){

    }

    public SecurityUser(String userId, String userName) {
        this.userId = userId;
        this.userName = userName;
    }

    @Override
    public Serializable getPrincipalId() {
        return userId;
    }
}
